<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"  %>
<%@include file="/survey/include/head.jsp"%>
<body>
<div id="demo">
    <div id="mainbox">
        <div id="box">
<%@include file="/survey/include/top.jsp" %>
           <div class="right">
                <div class="banner"><img src="<%=request.getContextPath() %>/survey/images/about_banner.jpg" width="703" height="183" /></div>
             <div class="tj_news" style="float:left; width:97%;">
               <h1>后台编辑问卷</h1>
               <div class="dd">
               <span align="right"><input type="button" value="添加问卷" onclick="location.href='<%=request.getContextPath() %>/symanage/baseinfo/beforeadd.htm'"/></span>
               <form>
                    <table width="99%" border="1">
                      <tr>
                        <td align="center">问卷名字</td>
                        <td align="center">开始时间</td>
                        <td align="center">结束时间</td>
                         <td align="center">发布</td>
                        <td align="center">状态</td>
                        <td align="center">操作</td>
                      </tr>
                      <c:forEach var="c" items="${list}">
                      <tr align="center">
                        <td><a href="<%=request.getContextPath() %>/symanage/total/total1.htm?syid=${c.id }">${c.sy_name }</a></td>
                        <td>${c.sy_startime }</td>
                        <td>${c.sy_endtime }</td>
                         <td><c:if test="${c.sy_ispub=='0'}">未发布</c:if><c:if test="${c.sy_ispub=='1'}">已发布</c:if></td>
                        <td><c:if test="${c.sy_status=='0'}">默认</c:if><c:if test="${c.sy_status=='1'}">启动</c:if>
                        <c:if test="${c.sy_status=='2'}">结束</c:if>
                        <c:if test="${c.sy_status=='3'}">已暂停</c:if>
                        <c:if test="${c.sy_status=='4'}">已关闭</c:if></td>
                        
					</li>
                        <td><a href="<%=request.getContextPath() %>/symanage/question/question.htm?sy_id=${c.id }"  title="添加问题">
                        <img src="<%=request.getContextPath() %>/symanage/js/kindeditor/plugins/image/images/addq.png" >
                        </a>
                        <a href="<%=request.getContextPath() %>/symanage/objectable/addobj.htm?sy_id=${c.id }" title="添加调查对象资料">
       					 <img src="<%=request.getContextPath() %>/symanage/js/kindeditor/plugins/image/images/adddx.png">                 
                        </a>
                        <a href="#"  onclick="if(confirm('您确认删除该问卷调查吗？')){location.href='delebase.htm?id=${c.id }'}" title="删除">
                        <img src="<%=request.getContextPath() %>/symanage/js/kindeditor/plugins/image/images/del.png">
                        </a>
                        <a href="findbase.htm?id=${c.id }" title="编辑">
                        <img src="<%=request.getContextPath() %>/symanage/js/kindeditor/plugins/image/images/edit.png" >
                       	</a>
                       	&nbsp;&nbsp;&nbsp;&nbsp;
                       	<c:if test="${c.sy_status=='0' || c.sy_status=='3'}">
                        <a href="#"  onclick="if(confirm('您确认启用该问卷？')){location.href='starbase.htm?id=${c.id }'}" title="启用">
                        <img src="<%=request.getContextPath() %>/symanage/js/kindeditor/plugins/image/images/star.png" >
                       	</a>
                       	</c:if>
                       	<c:if test="${c.sy_status=='1'}">
                       <a href="#"  onclick="if(confirm('您确认暂停该问卷调查吗？如果暂停后，前台将不能访问。')){location.href='pausebase.htm?id=${c.id }'}" title="停止">
                        <img src="<%=request.getContextPath() %>/symanage/js/kindeditor/plugins/image/images/stop.png" >
                       	</a>
                       	</c:if>
                      
                       <a href="#" onclick="if(confirm('确认发布该问卷调查吗？')){location.href='publish.htm?id=${c.id }'}" title="正式发布">
                        <img src="<%=request.getContextPath() %>/symanage/js/kindeditor/plugins/image/images/pub.png" width="16" height="16">
                       	</a>
                       <a href="pubview.htm?id=${c.id }" target="_blank"  title="预览">
                        <img src="<%=request.getContextPath() %>/symanage/js/kindeditor/plugins/image/images/view.gif">
                       	</a></td>
                      </tr>
                      </c:forEach>
                    </table>
               </form>
               </div>
                </div>
                <div class="clear"></div>
		</div>
            <div class="clear"></div>
<%@include file="/survey/include/bottom.jsp"%>
        </div>
    </div>
</div>
</body>
</html>

